package com.manger.test;

import org.apache.poi.ss.formula.functions.T;

/**
 * @ClassName MainThreat
 * @Description TODO
 * @Author @LiuHongJun
 * @Date 2025-10-23 13:49
 * @Version 1.0
 */
public class MainThreat extends Thread{

    public void run() {
        ChildThread childThread = new ChildThread();
        try{
            Thread.sleep(5000);
            Thread.sleep(5000);
        }catch (Exception e){
            e.printStackTrace();
        }
        finally {
            System.out.println("关闭子线程！");
            childThread.interrupt();
        }
    }

    public static void main(String[] args) {
        MainThreat mainThreat = new MainThreat();
        mainThreat.start();
    }
}
